package com.kgc.crowd.distributioncrowdcommon.api;

import com.kgc.crowd.distributioncrowdcommon.pojo.ResultEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="DISTRIBUTION-CROWD-REDIS-PROVIDER")
public interface RedisOperationRemoteService {
    @RequestMapping("/redis/provider/save/normal/string/key/value")
    ResultEntity<String> saveNormalStringKeyValue(
            @RequestParam("normalKey") String normalKey,
            @RequestParam("normalValue") String normalValue,
            @RequestParam("timeoutMinute") Integer timeoutMinute);


    @RequestMapping("/redis/provider/retrieve/string/value/by/string/key")
    ResultEntity<String> retrieveStringValueByStringKey(@RequestParam("normalKey") String normalKey);

        @RequestMapping("/redis/provider/remove/by/key")
    ResultEntity<String> removeByKey(@RequestParam("normalKey") String normalKey);
}
